﻿<UserControl x:Class="LevelEditor.View.UserControls.ScenePanel"
             Name="PropertiesControlPanel"
             FrameworkElement.Height="Auto"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:cmd="clr-namespace:LevelEditor.Controllers"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UIElement.CommandBindings>
        <CommandBinding Command="{x:Static cmd:AppCommands.CutGameSpriteCommand}" Executed="CutGameSpriteCmd_Executed" CanExecute="CutGameSpriteCmd_CanExecute" />
        <CommandBinding Command="{x:Static cmd:AppCommands.CopyGameSpriteCommand}" Executed="CopyGameSpriteCmd_Executed" CanExecute="CopyGameSpriteCmd_CanExecute" />
        <CommandBinding Command="{x:Static cmd:AppCommands.PasteGameSpriteCommand}" Executed="PasteGameSpriteCmd_Executed" CanExecute="PasteGameSpriteCmd_CanExecute" />
        <CommandBinding Command="{x:Static cmd:AppCommands.DeselectGameSpriteCommand}" Executed="DeselectGameSpriteCmd_Executed" CanExecute="DeselectGameSpriteCmd_CanExecute" />
        <CommandBinding Command="{x:Static cmd:AppCommands.DeleteGameSpriteCommand}" Executed="DeleteGameSpriteCmd_Executed" CanExecute="DeleteGameSpriteCmd_CanExecute" />
        <CommandBinding Command="{x:Static cmd:AppCommands.ToggleGridCommand}" Executed="ToggleGridCmd_Executed" CanExecute="ToggleGridCmd_CanExecute" />
    </UIElement.CommandBindings>
    <DockPanel Name="WorkAreaScrollViewer" DockPanel.LastChildFill="True">
        <Grid DockPanel.Dock="Top">
            <Rectangle FrameworkElement.Height="20" Shape.Fill="#FF2D2D2D" />
            <Label Control.Foreground="#FFFFFFFF">
                Scene
            </Label>
        </Grid>
        <ScrollViewer Name="SV" FrameworkElement.Width="Auto" FrameworkElement.Height="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto">
            <StackPanel Name="WorkArea" FrameworkElement.HorizontalAlignment="Center" FrameworkElement.VerticalAlignment="Center" UIElement.ClipToBounds="False">
                <Border>
                    <UIElement.BitmapEffect>
                        <DropShadowBitmapEffect DropShadowBitmapEffect.Color="Black" DropShadowBitmapEffect.Direction="0" DropShadowBitmapEffect.ShadowDepth="0" DropShadowBitmapEffect.Opacity=".5" DropShadowBitmapEffect.Softness=".5" />
                    </UIElement.BitmapEffect>
                    <Canvas Name="SceneCanvas" Panel.Background="#FFFFFFFF" FrameworkElement.Width="500" FrameworkElement.Height="500" />
                </Border>
            </StackPanel>
        </ScrollViewer>
    </DockPanel>

</UserControl>
